<?php
/**
 * Created by PhpStorm.
 * User: 陈艺赫
 * Date: 2017/12/10
 * Time: 23:34
 */

namespace Home\Controller;


use Think\Controller;

class BaseController extends Controller
{
    public function __construct()
    {
        parent::__construct();
        if (!empty(session('guest'))){
            $this->assign('login','1');
            $this->assign('guest',session('guest'));
        }else{
            $this->assign('login','0');
        }
    }
}